package org.example._05mvcboot3.controller;

import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.example._05mvcboot3.common.response.JsonResult;
import org.example._05mvcboot3.mapper.UserMapper;
import org.example._05mvcboot3.pojo.dto.UserLoginDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags = "用户模块")
@RestController
@RequestMapping("v1/users/")
public class UserController {
    @Autowired
    private UserMapper userMapper;
@PostMapping("login")
    public JsonResult login(@RequestBody UserLoginDTO userLoginDTO){
    log.debug("userLoginDTO:"+ userLoginDTO);
    userMapper.selectUserVO();
        return  new JsonResult();
    }
}
